package com.itheima.test;

public class MobileGame  extends Game{
    public MobileGame() {
    }

    public MobileGame(String type, String name) {
        super(type, name);
    }
    private void efforts(){
        System.out.println("晚上不睡觉玩 XXX");
    }
    private void damage(){
        System.out.println("导致白天上课困，毕业后找不到工作");
    }

    @Override
    void play() {
        System.out.println("名称为XXX的YYY类游戏非常流行");
    }
    void prepare(){
        efforts();
        damage();
    }
}
